<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmComboBox.cpp -->
  <meta name="description" content="提供一个下拉列表可被样式表设置的combobox，以及其他功能补丁.">
  <title>QCtmComboBox Class | QCustomUi 1.16.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">QCustomUi 1.16.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmComboBox</li>
<li id="buildversion">QCustomUi 1.16.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmComboBox Class</h1>
<!-- $$$QCtmComboBox-brief -->
<p>提供一个下拉列表可被样式表设置的combobox，以及其他功能补丁. <a href="#details">More...</a></p>
<!-- @@@QCtmComboBox -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmComboBox.h&gt;</span></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="https://doc.qt.io/qt/qcombobox.html" translate="no">QComboBox</a></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qctmserialportcombobox.html" translate="no">QCtmSerialPortComboBox</a></p>
</td></tr>
</table></div>
<ul>
<li><a href="qctmcombobox-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmcombobox.html#QCtmComboBox" translate="no">QCtmComboBox</a></b>(QWidget *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmcombobox.html#dtor.QCtmComboBox" translate="no">~QCtmComboBox</a></b>()</td></tr>
</table></div>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmcombobox.html#aboutToShowPopup" translate="no">aboutToShowPopup</a></b>()</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmcombobox.html#showPopup" translate="no">showPopup</a></b>() override</td></tr>
</table></div>
<!-- $$$QCtmComboBox-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<p><b>See also </b><a href="https://doc.qt.io/qt/qcombobox.html" translate="no">QComboBox</a>.</p>
<!-- @@@QCtmComboBox -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmComboBox[overload1]$$$QCtmComboBoxQWidget* -->
<h3 class="fn" translate="no" id="QCtmComboBox"><code class="details extra" translate="no">[explicit]</code> QCtmComboBox::<span class="name">QCtmComboBox</span>(<span class="type"><a href="https://doc.qt.io/qt/qwidget.html#QWidget" translate="no">QWidget</a></span> *<i>parent</i> = nullptr)</h3>
<p>构造一个父窗口为 <i translate="no">parent</i> 的combobox对象.</p>
<!-- @@@QCtmComboBox -->
<!-- $$$~QCtmComboBox[overload1]$$$~QCtmComboBox -->
<h3 class="fn" translate="no" id="dtor.QCtmComboBox"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmComboBox::<span class="name">~QCtmComboBox</span>()</h3>
<p>销毁该combobox对象.</p>
<!-- @@@~QCtmComboBox -->
<!-- $$$aboutToShowPopup[overload1]$$$aboutToShowPopup -->
<h3 class="fn" translate="no" id="aboutToShowPopup"><code class="details extra" translate="no">[signal]</code> <span class="type">void</span> QCtmComboBox::<span class="name">aboutToShowPopup</span>()</h3>
<p>弹出框显示前发送该信号.</p>
<!-- @@@aboutToShowPopup -->
<!-- $$$showPopup[overload1]$$$showPopup -->
<h3 class="fn" translate="no" id="showPopup"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmComboBox::<span class="name">showPopup</span>()</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qcombobox.html#showPopup" translate="no">QComboBox::showPopup</a>().</p>
<!-- @@@showPopup -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
